<style lang="scss" scoped>
	.content {
		width: 100%;
		background-color: white;
		padding: 30rpx 20rpx;
	}

	.list {
		padding: 25rpx 0;

		align-items: flex-start;
		color: #737373;

		.red {
			transform: translateY(6rpx);
		}

		.textarea {
			width: 460rpx;
			height: 120rpx;
			font-size: 28rpx;
		}

		.mic {
			height: 120rpx;
			width: 80rpx;
			border-left: 1px solid #ccc;
			padding-left: 20rpx;
		}

		.ipt {
			width: 550rpx;
		}

		.uploadfile {
			width: 550rpx;

			.btns {
				width: 100%;

				.btn {
					width: 152rpx;
					height: 64rpx;

					border: 2rpx solid #bfbfbf;
					border-radius: 34rpx;
				}
			}
		}

		.record {
			width: 550rpx;
		}
	}

	.title {
		padding: 20rpx;

		;
	}
</style>

<template>
	<view class="content">

		<view class="f34 bold" style="padding:0 30rpx;border-bottom: 1px solid #ccc;padding-bottom: 20rpx;">评审
		</view>
		<u-line></u-line>
		<view class="between-flex gray m-top30">
			<view>评审人：{{user}}</view>
			<view>评审时间：{{date}}</view>
		</view>
		<view class="m-top30 gray">
			<span class="red">*</span>评审结果（单选）
		</view>
		<radio-group class="m-top30 align-flex m-bottom30" name="" @change="choose">
			<view class="line align-flex textColor" style="width: 200rpx;" v-for="item,index in list" :key="index">
				<label>
					<radio color="#409eff" :checked="result==item.value" :value="index" />
					<text>{{item.name}}</text>
				</label>
			</view>


		</radio-group>
		<view v-if="result==2">
			<u-line></u-line>
			<view class="list between-flex f28" >
				
				<view class="align-flex">
					<span class="red">*</span>不通过理由
				</view>
				<view class="align-flex ">
					<textarea style="width:500rpx;" v-model="remark" class="textarea" value="" maxlength="-1"
						placeholder="请填写" />
			
				</view>
			</view>
		</view>
		

		<view class="lbtn" @click="submit">提交</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				head: this.$head,
				result: 1,
				user: uni.getStorageSync('username'),
				list: [{
						name: '通过',
						value: 1
					},
					{
						name: '不通过',
						value: 2
					}
				],
				date:'',
				remark:''
			}
		},
		props: {
			orderNum: {
				default: 0
			}
		},
		created() {
			this.date=this.$getDate()
		},
		methods: {
			submit() {
				if(this.result==1){
					this.$emit('confirm')
				}else{
					if(!this.remark){
						this.$msg('请输入不通过理由')
						return
					}
					this.$emit('cancel',this.remark)
				}
			},
			choose(e) {
				this.result = this.list[e.detail.value].value

			}

		}
	}
</script>
